package com.retoc.oawx.mapper;

import com.retoc.oawx.domain.Materials;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.retoc.oawx.domain.MaterialsType;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author retoc
* @description 针对表【tb_materials】的数据库操作Mapper
* @createDate 2022-06-22 10:29:27
* @Entity com.retoc.oawx.domain.Materials
*/
@Mapper
public interface MaterialsMapper extends BaseMapper<Materials> {

    public ArrayList<HashMap> selectCar();

    public ArrayList<Materials> selectMaterials(int typeId,int length,int start);


    Materials selectCarByid(int id);

    ArrayList<MaterialsType> getType();

    int insertMaterials(Materials materials);

    int updateMaterials(Materials materials);

    Materials selectMaterialsByid(int id);
}




